import Http from '@/http';

const http = new Http()

export function loginApi(data) {
    return http.post('/login', data)
}

export function loginInitApi(data) {
    return http.post('/login/init', data)
}

export function refreshLoginApi() {
    return http.post('/login/refresh')
}

export function authorizeApi(code) {
    return http.post('/login/authorize', {code : code})
}
